import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.12



TextField {
    id: root

    property color checkedColor: "#D5DBDB"
    property string iconSrc
    property bool iconVisible
    signal doubleClicked(var/*MouseEvent*/ event)
    property string title
    property int inputWdith
    property int inputHeight
    placeholderText: qsTr(title)
    font.family: "Arial"
    font.pixelSize: 15
    font.weight: Font.Thin
    antialiasing: true



    background: Rectangle {
        implicitWidth: inputWdith?inputWdith:260
        implicitHeight: inputHeight?inputHeight: 42
        radius: 8

        color: root.enabled ? "transparent" : "#F4F6F6"
        border.color: root.enabled ? root.checkedColor : "#D5DBDB"
        border.width: 2
        opacity: root.enabled ? 1 : 0.7
        layer.enabled: root.hovered

    }

}
